package com.ricardoteix.subtitle.events {
	import com.ricardoteix.subtitle.SubtitleBlock;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Ricardo Teixeira
	 */
	public class SubtitleEvent extends Event {
		
		public static const ENTER_BLOCK:String = "SubtitleEvent.ENTER_BLOCK";
		public static const EXIT_BLOCK:String = "SubtitleEvent.EXIT_BLOCK";
		public static const UPDATE:String = "SubtitleEvent.UPDATE";
		public static const EOF:String = "SubtitleEvent.EOF";
		
		private var _block:SubtitleBlock;
		private var _currentTime:Number;
		
		public function SubtitleEvent(type:String, currentTime:Number, block:SubtitleBlock = null, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			this._block = block;
			this._currentTime = currentTime;
		}
		
		public function get block():SubtitleBlock { return _block; }
		
		public function get currentTime():Number { return _currentTime; }
		
	}

}